<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="../scripts/boot.js" type="text/javascript"></script>
<script src="../scripts/core.js" type="text/javascript"></script>
<title>招聘 </title>
</head>
<link type="text/css" rel="stylesheet" href="../style/css/base.css" />
<link type="text/css" rel="stylesheet" href="../style/css/apply.css" />
<script language="javascript">
 mini.parse();

        function submitForm() {
            window.location.href='applyWorkExperience.jsp';//测试用，之后把这句删了
            var form = new mini.Form("#form1");

            form.validate();
            if (form.isValid() == false) return;

            //提交数据
            var data = form.getData();      
            var json = mini.encode([data]);
            alert(json);
            $.ajax({
                url: "../dataService/ApplyBaseService.jsp?method=addApplyBase",
                type: "post",
                data: { submitData: json },
                success: function (text) {
                    alert("提交成功，返回结果:" + text);
                    window.location.href='applyWorkExperience.jsp';
                }
            });
        }
        function resetForm(e) {
            var form = new mini.Form("#form1");
            form.clear();
        }
</script>
<body>
<%@include file="head.jsp" %>
<div class="container">
<div id="content_apply">
<br /><br /><br /><br />
<h3>基本信息</h3>
<div id="form1">
<table border="0" cellpadding="1" cellspacing="10" style="width:60%;table-layout:fixed;" align="center">
    <tr>
        <td >姓名：</td>
        <td>
            <input name="name" class="mini-textbox" style="width:100%;" required="true"/>
        </td>
        <td >性别：</td>
         <td >
            <input name="gender" class="mini-radiobuttonlist" data="[{id: 1, text: '男'}, {id: 2, text: '女'}]" required="true"/>
        </td>
    </tr>
    <tr>
        <td >手机号：</td>
        <td >
             <input name="phone" class="mini-textbox" vtype="int" style="width:100%;" required="true"/>
        </td>
         <td >邮箱：</td>
        <td >
             <input name="mail" class="mini-textbox" vtype="email" style="width:100%;" required="true"/>
        </td>
    </tr>
    <tr>
        <td >学历：</td>
        <td >
             <input name="education" class="mini-textbox" style="width:100%;" required="true"/>
        </td>
         <td >学校：</td>
        <td >
             <input name="school" class="mini-textbox" style="width:100%;" required="true"/>
        </td>
    </tr>
    <tr>
        <td >专业：</td>
        <td >
             <input name="major" class="mini-textbox" style="width:100%;" required="true"/>
        </td>
         <td >英语水平：</td>
        <td >
             <input name="English" class="mini-textbox" style="width:100%;" required="true"/>
        </td>
    </tr>
    <tr>
        <td >计算机水平：</td>
        <td >
             <input name="computer" class="mini-textbox" style="width:100%;" required="true"/>
        </td>
         <td >身份证号：</td>
        <td >
             <input name="IdNum" class="mini-textbox" style="width:100%;" required="true"/>
        </td>
    </tr>
    <tr>
        <td >自我评价：</td>
        <td colspan="3" >
            <input name="selfEvaluation" class="mini-textarea" style="width:100%;height:100px;" required="true"/>
        </td>        
    </tr>
    <tr></tr>
    <tr></tr>
    <tr></tr>
    <tr>
            <td>
                 
            </td>
            <td class="sub">
            <a href="#" onclick="submitForm()">保存&下一步</a>
                                              
            </td>
            <td class="sub">
            
            <a href="#" onclick="resetForm()">重置</a>                                    
            </td>
    </tr>
</table>
</div>
</div>
</div>
<%@include file="bottom.jsp" %>
</body>
</html>

